/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 获取 POST /geo/open/rest/getData */
export async function geoOpenRestGetDataUsingPost({
  body,
  options,
}: {
  body: API.GeoRestBoGeoOpenRestGetData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RGeoRestVo>('/geo/open/rest/getData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取最近一个兑换点驿站 POST /geo/open/rest/getNearScoByData */
export async function geoOpenRestGetNearScoByDataUsingPost({
  body,
  options,
}: {
  body: API.GeoRestOpenBoGeoOpenRestGetNearScoByData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RGeoRestVo>('/geo/open/rest/getNearScoByData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 查看附近驿站 POST /geo/open/rest/listGeoData */
export async function geoOpenRestListGeoDataUsingPost({
  body,
  options,
}: {
  body: API.GeoRestOpenBo;
  options?: { [key: string]: unknown };
}) {
  return request<API.RListGeoRestVo>('/geo/open/rest/listGeoData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
